//
//  WLToolsViewController.swift
//  LianTongSF
//
//  Created by Visitor on 2017/7/17.
//  Copyright © 2017年 万利. All rights reserved.
//

import UIKit

class WLToolsViewController: WLBaseViewController {

    @IBOutlet weak var bgViewHeight: NSLayoutConstraint!
    @IBOutlet weak var scrollView: UIScrollView!
    @IBOutlet weak var topView: UIView!
    @IBOutlet weak var powerView: UIView!
    override func viewDidLoad() {
        super.viewDidLoad()
        self.setupStyle()
        setupUI()
        
        let bgHeight = self.powerView.frame.maxY + 10
        if bgHeight < M_S.height - 64 {
            self.bgViewHeight.constant = M_S.height - 64 + 10
        }else{
            self.bgViewHeight.constant = bgHeight
        }
    }
    
    fileprivate func setupUI(){
        let linsCount: NSInteger = 3
        let width =  M_S.width / 3
        for  i  in 1..<linsCount {
            let vi: UIView = UIView()
            vi.frame = CGRect(x:  CGFloat( i ) * width, y: 32, width: 1, height: self.topView.frame.size.height - 32)
            vi.backgroundColor = RGB_S(c: 235)
            self.topView.addSubview(vi)
        }
        
        for  i  in 1..<linsCount {
            let vi: UIView = UIView()
            vi.frame = CGRect(x:  CGFloat( i ) * width, y: 32, width: 1, height: self.powerView.frame.size.height - 32)
            vi.backgroundColor = RGB_S(c: 235)
            self.powerView.addSubview(vi)
        }
    
    }
    


}
